package com.shop.bean;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.shop.bean.Product_images;

public class Product {
    private int id;
    private String name;
    private String description;
    private BigDecimal price;
    private int stock;
    private int category_id1;  //一级分类
    private int category_id2;  //二级分类
    private LocalDateTime created_at;
    private LocalDateTime updated_at;
    private int isdel;//是否删除
    private int state;  //是否下架
    private List<Product_images> imgurl;//所有图片的地址   不超过五张
    private Category category1;//商品的类1
    private Category category2;//商品的类2

    public List<Product_images> getImgurl() {
        return imgurl;
    }

    public void setImgurl(List<Product_images> imgurl) {
        this.imgurl = imgurl;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }





    public int getCategory_id1() {
        return category_id1;
    }

    public void setCategory_id1(int category_id1) {
        this.category_id1 = category_id1;
    }

    public int getCategory_id2() {
        return category_id2;
    }

    public void setCategory_id2(int category_id2) {
        this.category_id2 = category_id2;
    }

    public Category getCategory1() {
        return category1;
    }

    public void setCategory1(Category category1) {
        this.category1 = category1;
    }

    public Category getCategory2() {
        return category2;
    }

    public void setCategory2(Category category2) {
        this.category2 = category2;
    }




    public int getIsdel() {
        return isdel;
    }

    public void setIsdel(int isdel) {
        this.isdel = isdel;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }


    public LocalDateTime getCreated_at() {
        return created_at;
    }

    public void setCreated_at(LocalDateTime created_at) {
        this.created_at = created_at;
    }

    public LocalDateTime getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(LocalDateTime updated_at) {
        this.updated_at = updated_at;
    }

}
